<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Which is Better - user page</title>
        <link type="text/css" rel="stylesheet" href="<?php base_url(); ?>/final/wib.css" />
    </head>
    <body>
        <div id="header"><h1>Which is Better</h1></div>

        <div id="navcontainer">
            <ul id="navlist">
                <li id="active" />
                <li><a href="<?php base_url(); ?>/final/index.php/index/main">Home</a></li>
                <li><a href="<?php base_url(); ?>/final/index.php/index/user_page">User Page</a></li>
                <li><a href="<?php base_url(); ?>/final/index.php/index/result_page">Winners</a></li>
            </ul>
        </div>

        <div id="wrapper">
        <h2>User View</h2>

        <?php if(isset($data['error_msg'])) echo $error; ?>

            <?php echo form_open_multipart('index/submit');?>
        <table>
            <tr>
            <td><label>Image</label></td>
            <td><input type="file" name="userfile" size="20" /></td>
            </tr>
            <tr>
                <td><label>Note</label></td>
                <td><input type="text" name="note" value="" /></td>
            </tr>
            <tr>
                <td><button type="submit">upload!</button></td>
            </tr>
        </table>

        </form>

        <form action="http://localhost/final/index.php/index/uri_form" method="post">
        <table>
            <tr>
                <td></td>
                <td><strong>Item Name</strong></td>
                <td><strong>Notes</strong></td>
            </tr>
            <?php foreach($result as $row): ?>
                <tr>
                    <td><input type="radio" value="<?php echo $row->IID; ?>" name="remove" /></td>
                    <td><?php echo $row->Image; ?></td>
                    <td><?php echo $row->Note; ?></td>
                </tr>
                <?php endforeach; ?>

        </table>
            <p><button type="submit">Submit!</button></p>
        </form>
    </div>
    </body>
</html>
